package com.wang.designpattern.adapter.objectadapter;

public class VoltageAdapter implements IVoltage5 {

    private Voltage220 voltage220;

    public VoltageAdapter(Voltage220 voltage220) {
        this.voltage220 = voltage220;
    }

    @Override
    public int outPut5() {
        int src = voltage220.output220();
        int dest = src / 44;
        System.out.println("电压经过转换=" + dest + "伏");
        return dest;
    }
}
